package com.bgs.travelapp.passengerType.controller;

import com.bgs.travelapp.passengerType.service.PassengerTypeService;
import com.bgs.travelapp.result.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 游客类型模块
 * lzy 2022-8-18 14点43分
 */
@CrossOrigin
@RestController
@RequestMapping("/passengerType")
public class PassengerTypeControler {

    @Autowired
    PassengerTypeService passengerTypeService;

    /**
     * 获取游客类型列表
     * lzy 2022-8-18 15点06分
     * @return
     */
    @GetMapping("/getPassengerTypeList")
    public CommonResult getPassengerTypeList(){
        return passengerTypeService.getPassengerTypeList();
    }

}
